<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@include file="template/adminHeader.jsp"%>
<center>
	<p>
		<b>Résultat de la recherche</b>
	</p>
</center>
<br />
<br />
<table class="tbl_con">
	<caption class='center'>Liste des comptes</caption>
	<thead>
		<tr>
			<th class="th1">Nom</th>
			<th class="th1">Prénom?</th>
			<th class="th1">Email</th>
			<th class="th1">Login</th>
			<th class="th1">Mot de passe</th>
			<th class="th1">Numéro de téléphone</th>
			<th class="th1">Département</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${fetchedUser}" var="usr">
			<tr>
				<td class="td1"><c:out value="${usr.familyName}"></c:out></td>
				<td class="td1"><c:out value="${usr.name}"></c:out></td>
				<td class="td1"><c:out value="${usr.email}"></c:out></td>

				<td class="td1"><c:out value="${usr.login}"></c:out></td>
				<td class="td1"><c:out value="${usr.password}"></c:out></td>
				<td class="td1"><c:out value="${usr.tel}"></c:out></td>
				<td class="td1"><c:out value="${usr.dept.deptName}"></c:out></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<%@include file="template/footer.jsp"%>
